package com.example.demo.service;

import com.example.demo.dao.DataUserDao;
import com.example.demo.entity.DataUser;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author guochao
 * @version 1.0
 * @date 2022/5/26 1:14
 */
@Service
public class DataUserService {
    @Resource
    private DataUserDao dataUserDao;

    public void addDataUser(DataUser dataUser){
        dataUserDao.addDataUser(dataUser);
    }

    public void addDataUserBatch(List<DataUser> list){
        dataUserDao.addDataUserBatch(list);
    }

    public List<DataUser> getDataUserList(DataUser dataUser) {
        return dataUserDao.getDataUserList(dataUser);
    }

    public void updateDataUser(DataUser dataUser) {
        dataUserDao.updateDataUser(dataUser);
    }

    public void deleteDataUserById(Long id) {
        dataUserDao.deleteDataUserById(id);
    }

    public void deleteDataUserByIds(Long[] ids) {
        dataUserDao.deleteDataUserByIds(ids);
    }
}
